<?php
	echo $this -> Html -> script(array('pc.js', 'jquery.validate.js'));
	echo $this -> Html -> css(array('reveal.css'));
?>
<script type="text/javascript">
	var pathRoot = '<?php echo $this -> Html -> url('/', true); ?>';
</script>
<?php
	echo $this -> Form -> create('Bookclinic', array('data-ajax' => 'false', 'id' => 'pc_submit'));
?>
<div id="viewbook_border">
	<div class="container">
	<div class="pc_common_title"></div>
	<div id='bookSchedule'></div>
	</div>
	<!--<input type="hidden" id="hdId1" name="hdName1" value="">-->
	<?php
		echo "</div>";
		echo $this -> Form -> input('hd1', array('type' => 'hidden', 'id' => 'hdDate', 'name' => 'hdDate'));
		echo $this -> Form -> input('hd2', array('type' => 'hidden', 'id' => 'hdTime', 'name' => 'hdTime'));
		echo $this -> Form -> input('hd3', array('type' => 'hidden', 'id' => 'hdId3', 'name' => 'hdName3'));
		echo $this -> Form -> input('hd4', array('type' => 'hidden', 'id' => 'hdId4', 'name' => 'hdName4'));
		echo $this -> Form -> input('hd5', array('type' => 'hidden', 'id' => 'hdNumber'));
		echo $this -> Form -> input('hd6', array('type' => 'hidden', 'id' => 'hdStatus'));
		echo $this -> Form -> input('hd7', array('type' => 'hidden', 'id' => 'hdLastBook', 'value' => $lastBook));
		echo $this -> Form -> input('hd8', array('type' => 'hidden', 'id' => 'hdStrEvent', 'value' => $strEvent));
		echo $this -> Form -> end();
	?>
</div>
<?php
	echo $this -> Form -> create('pc_popup1', array('data-ajax' => 'false', 'id' => 'pc_popup1'));
?>
<div id="yoyaku_bg" class="reveal-modal1">
	<div id="yoyaku_bg_child" class="yoyaku_bg">
		  <div id="yoyaku_number">
		    <label id="lblNumber"></label>
		    </div>
		<table width="450" border="0" cellspacing="2" cellpadding="10" style="margin-top:30px; margin-left:10px;">
		  <tr>
		    <td width="165" align="left" bgcolor="#EDEEEF">◆診察券番号</td>
		    <td width="239" align="left" bgcolor="#FFFFFF"><label id="lblCustomerNo"></label><input type="button" class="class_button_type" value="登録" id="btnAdd" name="btnAdd"></td>
		  </tr>
		  <tr>
		    <td align="left" bgcolor="#EDEEEF">◆お名前表示</td>
		    <td align="left" bgcolor="#FFFFFF"><label id="lblCustomerName"></label></td>
		  </tr>
		  <tr>
		    <td align="left" bgcolor="#EDEEEF">◆前回来院日</td>
		    <td align="left" bgcolor="#FFFFFF"><label id="lblDay"></label></td>
		  </tr>
		  <tr>
		    <td align="left" bgcolor="#EDEEEF">◆電話番号</td>
		    <td align="left" bgcolor="#FFFFFF"><label id="lblMobile"></label></td>
		  </tr>
		</table>
		<table width="450" border="0" align="center" cellpadding="5" cellspacing="0">
		  <tr>
		    <td align="center"><?php echo $this -> Html -> image('btn1.png', array('alt' => '診察済', 'class' => 'btnSave', 'width' => '144', 'height' => '58'))?></td>
		    <td align="center"><?php echo $this -> Html -> image('btn2.png', array('alt' => '遅れ', 'class' => 'btnLate', 'width' => '144', 'height' => '58'))?></td>
			<td align="center"><?php echo $this -> Html -> image('btn3.png', array('alt' => '取り消し', 'class' => 'btnCancel', 'width' => '144', 'height' => '58'))?></td>
		  </tr>
		</table>
	</div>
</div>
<?php echo $this -> Form -> end();?>
<div id="bookingPopUp" class="reveal-modal bookingPopUp">
	<ul class="registration_ul">
		<li id="li_text01" class="li_text01_on"></li>
		<li id="li_text02" class="li_text02"></li>
	</ul>
	<?php echo $this -> Form -> create('pc_popup2', array('data-ajax' => 'false', 'id' => 'pc_popup2'));?>
	<div id="newCustomerArea">
		<div class="class_content_popup">
			<table>
				<tr>
					<th>◆お名前</th>
					<td><input type="text" id="customerName" /></td>
				</tr>
				<tr>
					<th>◆年齢</th>
					<td><input type="text" id="customerAge" maxlength="2"/></td>
				</tr>
				<tr>
					<th>◆診察券番号</th>
					<td><input type="text" id="customerNo" /></td>
				</tr>
				<tr>
					<th>◆電話番号</th>
					<td>
						<input type="text" id="customerMobile" />
						<br>
                		<label style="color: red;" id="messageUpdateMobile"></label>
					</td>
				</tr>
			</table>
		</div>
		<div class="class_div_button">
			<input type="button" id="btnConfirmCustomer" class="class_button_confirm" value=""/>
			<input type="button" class="close-reveal-modal class_button_cancel_1" value=""/>
		</div>
	</div>
	<div id="confirmCustomerArea" style="display: none;">
		<div class="class_content_popup">
			<table>
				<tr>
					<th>◆お名前</th>
					<td><label id="confirmCustomerName"></label></td>
				</tr>
				<tr>
					<th>◆年齢</th>
					<td><label id="confirmCustomerAge"></label></td>
				</tr>
				<tr>
					<th>◆診察券番号</th>
					<td><label id="confirmCustomerNo"></label></td>
				</tr>
				<tr>
					<th>◆電話番号</th>
					<td><label id="confirmCustomerMobile"></label></td>
				</tr>
			</table>
		</div>
		<div class="class_div_button">
			<input type="button" class="class_button_save_2" id="btnAddCustomer" value=""/>
			<input type="button" class="class_button_back" id="backInput" value=""/>
			<input type="button" class="close-reveal-modal class_button_cancel_2" value=""/>
		</div>
	</div>
	<?php echo $this -> Form -> end(); ?>
	<?php echo $this -> Form -> create('pc_popup3', array('data-ajax' => 'false', 'id' => 'pc_popup3'));?>
	<div id="oldCustomerArea">
		<div class="class_content_popup">
			<table>
				<tr>
					<th>◆診察券番号</th>
					<td><input type="text" id="oldcustomerNo" maxlength="15"/></td>
				</tr>
			</table>
		</div>
		<div class="class_div_button">
			<input type="button" id="btnCustomerRegister" class="class_button_save_1" value=""/>
			<input type="button" class="close-reveal-modal class_button_cancel_1" value=""/>
		</div>
	</div>
	<?php echo $this -> Form -> end(); ?>
</div>
<div id="fadedArea"></div>
